<% if(request.kind) {%>
<table>
	<thead class="ahead">
		<tr>
			<th colspan="8">Kinder</th>
		</tr>
	</thead>
	<tbody>
		<% request.kind.each { item -> %>
	   		<tr> 
		  		<form action="/gliste/updatekind" method="post">
		  			<td class="middle">Name</td>
		   			<td>
		   				<input type="text" name="name" value="${item.name}"></input>
		   			</td>
		  		 	<td class="middle">Alter</td>
		   			<td>
		   				<% if(item.alter) {%>
		   					<input class="alter" type="text" name="alter" value="${item.alter}"></input>
		   				<% } else {%>
		   					<input class="alter" type="text" name="alter" ></input>
		   				<% } %>
		   			</td>
		   			<!--<td class="middle">Zusage</td>
		   			<td>
						<% if(item?.status != null && item?.status == 1){%>
				           <img title="Zusage" alt="Ja" src="/images/ja.jpg">
		  					<% } else if(item?.status != null && item?.status == 2) {%>
		    					<img title="Noch offen" alt="Nein" src="/images/fragezeichen.gif">
		   	 			<% } else {%>
		    					<img title="Absage" alt="Nein" src="/images/nein.jpg">
		  					<% } %>
					</td>-->
		   			<td>
		   				<input type="hidden" name="key" value="${com.google.appengine.api.datastore.KeyFactory.keyToString(request.gast.key)}" />
						<input type="hidden" name="kkey" value="${com.google.appengine.api.datastore.KeyFactory.keyToString(item.key)}" />
						<input class="buttonupdate" type="submit" value="" />
		   			</td>
		   		</form>
		   	</tr>
	   	<% } %>
	</tbody>
</table>
<br/><br/>
<% } %>
<% if(request.anhang) {%>
<table>
	<thead class="ahead">
		<tr>
			<th colspan="6">Begleitung</th>
		</tr>
	</thead>
	<tbody>
		<% request.anhang.each { item -> %>
	   		<tr> 
		  		<form action="/gliste/updateanhang" method="post">
		  			<td>Name</td>
		   			<td>
		   				<input type="text" name="name" value="${item.name}"></input>
		   			</td>
		  		 	<!--<td class="middle">Zusage</td>
		   			 <td>
						<% if(item?.status != null && item?.status == 1){%>
					          <img title="Zusage" alt="Ja" src="/images/ja.jpg">
		   				<% } else if(item?.status != null && item?.status == 2) {%>
		     				<img title="Noch offen" alt="Nein" src="/images/fragezeichen.gif">
		    	 		<% } else {%>
		     				<img title="Absage" alt="Nein" src="/images/nein.jpg">
		   				<% } %>
					</td> -->
		   			<td>
		   				<input type="hidden" name="key" value="${com.google.appengine.api.datastore.KeyFactory.keyToString(request.gast.key)}" />
						<input type="hidden" name="kkey" value="${com.google.appengine.api.datastore.KeyFactory.keyToString(item.key)}" />
						<input class="buttonupdate" type="submit" value="" />
		   			</td>
		   		</form>
			</tr>
	   	<% } %>
	</tbody>
</table>
<br/><br/>
<% } %>